include $(HOME)/workspace/rules.mk

INCLUDES=-I$(HOME)/workspace/3rd/jsoncpp/include/
LIBS+=-L$(HOME)/workspace/lib -ljsoncpp
OBJS=test.o
all: test

test: test.o
	$(CXX) $(CFLAGS) -o $@ $^ $(LIBS)

$(OBJS): %.o: %.cpp
	echo "compile ..."
	$(CXX) -c $(CFLAGS) $(INCLUDES) -o $@ $<

clean :
	rm -rf $(OBJS) test
